#include "stdafx.h"
#include "BattleServerSession.h"
#include "PacketHandler.h"
#include <PacketStruct.h>
#include <PublicMath.h>

BattleServerSession::BattleServerSession()
{
}

BattleServerSession::~BattleServerSession()
{
}

VOID BattleServerSession::Clear()
{
	ServerSession::Clear();

	m_dwNumberOfRooms = 0;
}


VOID BattleServerSession::OnRecv( BYTE *pMsg, WORD wSize )
{
	g_PacketHander.ParsePacket_AG( this, (MSG_BASE *)pMsg, wSize );
}
VOID BattleServerSession::OnDisconnect()
{
	ServerSession::removeRelatedUsers();

	ServerSession::OnDisconnect();
}

VOID BattleServerSession::OnLogString( char *pszLog )
{
	LogToFile( "NetworkLog_AgentServer.txt", "[BattleSession] %s", pszLog );
}